app = require './private/config/default'
routesRoot = require './private/routes/root'
routesMachines = require './private/routes/machines'
routesUsers = require './private/routes/users'

### ROOT ###
app.get '/', routesRoot.index
app.get '/login', routesRoot.loginGet
app.post '/login', routesRoot.loginPost
app.get '/logout', routesRoot.logoutGet

### MACHINES ###
app.get '/machines', routesMachines.index

### USERS ###
app.get '/users', routesUsers.index

app.listen 3000, () ->
    console.log "Listening on port 3000"
    return